]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Destroy inspector when closed
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 3 Sep 2026 17:40:47 +0000 (19:40 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 13 Sep 2026 17:39:10 +0000 (19:39 +0200)
We create a new inspector each time the "inspect" button is clicked,
but never destroy the old one.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4381>
(cherry picked from commit 669f9485a6a011b5c82c7c45c600502654c1b060)

js/ui/lookingGlass.js

index ff24e6b520924fa23b37c0daac80838bc7abb596..1ae08aafb7eb7e4d32a29bc7cfdf74963a884428 100644 (file)
@@ -1368,6 +1368,7 @@ class LookingGlass extends St.BoxLayout {
             inspector.connect('closed', () => {
                 this.show();
                 global.stage.set_key_focus(this._entry);
+                inspector.destroy();
             });
             this.hide();
             return Clutter.EVENT_STOP;